
package com.joysuch.wwyt.mh.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import com.joysuch.wwyt.core.bean.SimpleUserBean;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

@Data
public class MhMajorHazardChemProductRelListBean {

    private Long id;
    // 租户
    private Long tenentId;
    // 组织机构代码
    private String orgCode;
    // 统一编码
    private String code;
    // 名称
    @NotNull(field = "重大危险源名称")
    private String name;
    // 描述
    private String description;
    // 所在位置
    @Length(max = 2000)
    //@NotNull(field = "所在位置")
    private String location;
    // 防雷防静电设施是否定期接受检测
    private String antiThunderFacilityPeriodlyChecked;
    // 周边环境名称
    private String surroundingName;
    // 周边环境类型
    private String surroundingType;
    // 与危险源最近距离
    private Integer minDistance;
    // 周边环境人数
    private Integer personCountArround;
    // 重大危险源周边安全间距(m)
    private Integer surroundingSafeDistance;
    // 周边环境联系人
    private String surroundingContact;
    // 周边环境联系人电话
    private String surroundingContactPhone;
    // R值
    private Double rvalue;
    // 重大危险源等级
    @NotNull(field = "重大危险源等级")
    private String level;
    //
    private String writtenBy;
    // 投用时间
    private String startUseTime;
    // 所在区域
    @NotNull(field = "所在风险区域")
    private Long riskDistrictId;
    // 所在区域名称
    private String riskDistrictName;

    // 创建时间
    private String createTime;

    private BaseAttachmentBean attachment;
    /*
     * // 更新人
     * private Long updateBy;
     * // 更新时间
     * private String updateTime;
     * // 删除标记
     * private String deleteFlag;
     */
    //
  /*  private Long chemProductId;
    //
    private Long majorHazardId;
    //
    private String chemProductFeature;
    //
    private String substanceStatus;
    //
    private String operationPressure;
    //
    private String operationTemperature;
    //
    private Double designStock;
    //
    private Double stock;
    //
    private Double criticalStock;
    //
    private Double fixRate;*/

    private List<MhMajorHazardChemProductRelAddBean> mhMajorHazardChemProductRels;
    //
    // 名称
    private String Cpname;
    // 别名
    private String alias;
    // 英文名称
    private String engName;
    // 别名
    private String casNo;
    // 类型
    private String type;
    //
    private String hazardChemicalFlag;
    // 生产用途
    private String usage;
    // 所在区域,和riskDistrictId含义一致，为了兼容前端保留此字段，后续考虑移除
    private Long area;

    private Integer responsibleDept;

    //主要负责人
    private String responsibleUserId;
    private List<SimpleUserBean> responsibleUserIdList;
    private String responsibleUserName;

    //操作负责人
    private String operationUserId;
    private List<SimpleUserBean> operationUserIdList;
    private String operationUserName;

    //技术负责人
    private String technologyUserId;
    private List<SimpleUserBean> technologyUserIdList;
    private String technologyUserName;

}
